package ao.com.bna.util;

import org.hibernate.cfg.Configuration;
import org.hibernate.tool.hbm2ddl.SchemaExport;

public class GerarBaseDeDados {
	public static void main(String args[]) {
		Configuration cfg = new Configuration().configure();
		//cfg.addAnnotatedClass(DmfasSigma.class);

		SchemaExport se = new SchemaExport(cfg);

		se.create(true, true);
		
		System.out.println("sucesso...");
		// se.setOutputFile("c:\\Ocorrencia.sql");
		// SchemaUpdate update = new SchemaUpdate (cfg);
		// update.execute(true,true);

	}
}
